package io;

import org.springframework.core.LocalVariableTableParameterNameDiscoverer;

import java.lang.reflect.Method;

/**
 * Created by jinju on 2016/5/6.
 */
public class Test {
    public static void main(String[] args) {
        Bean b = new Bean();
        b.setStr("233");

        Class clazz = b.getClass();
        Method[] methods = clazz.getMethods();
        LocalVariableTableParameterNameDiscoverer u = new LocalVariableTableParameterNameDiscoverer();
        String[] params = u.getParameterNames(methods[0]);
        System.out.println(params[0]);
    }
}
